export function setLoginUserStorage(res) {
	uni.setStorageSync("loginId",res.data.loginId)
	uni.setStorageSync("loginName", res.data.loginName)
	uni.setStorageSync("token", res.data.token)
	uni.setStorageSync("roleName", res.data.roleName)
	uni.setStorageSync("phone", res.data.phone)
	uni.setStorageSync("isDuty", res.data.isDuty)
	// 值班部门 1：启蒙星 2：BCSP
	uni.setStorageSync("dutyDept", res.data.dutyDept)
	
	
	
	//旧版额外设的，不知道其他页面是否用到，误删
	uni.setStorageSync("userInfo", res.data.roleName)
	uni.setStorageSync("userRole", res.data.roleName)
	uni.setStorageSync("userName", res.data.loginName)
	uni.setStorageSync("currAuthorizeStep", 0)
	
	
	if(res.data.roleName === 'student' || res.data.roleName === 'parent') {
		uni.setStorageSync("identity", JSON.stringify(res.data.identity))
	}
}
